// Helper functions for volvis.cpp: load, save and edit transfer function files

#ifndef TFEDIT_H
#define TFEDIT_H

#include <vtkColorTransferFunction.h>
#include <vtkPiecewiseFunction.h>

// Write transfer functions to file
int writeTFFile(const char *filename, vtkColorTransferFunction *volumeColor,
				vtkPiecewiseFunction *scalarOpacity, vtkPiecewiseFunction *gradientOpacity);

// Load transfer functions from file
int readTFFile(const char *filename, vtkColorTransferFunction *volumeColor,
				vtkPiecewiseFunction *scalarOpacity, vtkPiecewiseFunction *gradientOpacity);

// Give user an interface to edit transfer functions
int editTF(vtkColorTransferFunction *volumeColor, vtkPiecewiseFunction *scalarOpacity,
				vtkPiecewiseFunction *gradientOpacity);

// Clear terminal screen (linux only)
void clearScreen();

#endif
